package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.AlipayOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MJS on 2017/5/24.
 */
public interface AlipayOrderRepository extends JpaRepository<AlipayOrder, Long> {
    public AlipayOrder findByOutTradeNo(String outTradeNo);

        public int deleteByOutTradeNo(String outTradeNo);
//    public void removeByOutTradeNo(String outTradeNo);

    public AlipayOrder findByOutTradeNoAndUserId(String outTradeNo, long userId);

}
